<template>
	<view id="bigbox">
		<t-table @change="change" style="margin: 20rpx 0;">
			<t-tr>
				<t-th>月份</t-th>
				<t-th>数量</t-th>
				<t-th>金额</t-th>
				<t-th>上月环比</t-th>
				<t-th>去年同比</t-th>
			</t-tr>
			<t-tr v-for="item in list">
				<t-td>{{ item.query02 }}</t-td>
				<t-td>{{ item.query03 }}</t-td>
				<t-td>{{ item.query04 }}</t-td>
				<t-td>{{ item.query05 }}</t-td>
				<t-td>{{ item.query06 }}</t-td>
			</t-tr>
		</t-table>
	</view>
</template>

<script>
	import tTable from '@/component/t-table/t-table.vue';
	import tTh from '@/component/t-table/t-th.vue';
	import tTr from '@/component/t-table/t-tr.vue';
	import tTd from '@/component/t-table/t-td.vue';
	export default {
		data() {
			return {
				list:[],
				type:''
			}
		},
		components: {tTable,tTh,tTr,tTd},
		onLoad:function(option){
			this.type = option.type
			if(this.type == 'byjj'){
				uni.setNavigationBarTitle({
				　　title:'本月进件'
				})
			}else if(this.type == 'bytg'){
				uni.setNavigationBarTitle({
				　　title:'本月通过'
				})
			}else if(this.type == 'byfk'){
				uni.setNavigationBarTitle({
				　　title:'本月放款'
				})
			}else if(this.type == 'bykj'){
				uni.setNavigationBarTitle({
				　　title:'本月客拒'
				})
			}
			this.initial()
		},
		methods: {
			initial:function(){
				this.$get('report/fxjReport_06/list',{
					query01:this.type
				}).then((res)=>{
					this.list = res.data.result.records
					console.log(res.data.result.records)
				})
			}
			
			
		}
	}
</script>

<style>
	#bigbox{
		width: 100vw;
		height: 100vh;
		padding: 30rpx;
		box-sizing: border-box;
	}
</style>
